package com.bdqn.service.impl;

import com.bdqn.entity.PsPoleInfo;
import com.bdqn.entity.PsUser;
import com.bdqn.mapper.PsPoleInfoMapper;
import com.bdqn.service.IPsPoleInfoService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dede
 * @since 2020-05-23
 */
@Service
public class PsPoleInfoServiceImpl extends ServiceImpl<PsPoleInfoMapper, PsPoleInfo> implements IPsPoleInfoService {
	@Autowired
	PsPoleInfoMapper psPoleInfoMapper;
	
	@Override
	public List<PsPoleInfo> selectPoleByLineId(Integer lid) {
		QueryWrapper<PsUser> qw=new QueryWrapper<>();
		 qw.eq("l.id", lid);
		return psPoleInfoMapper.selectPoleByLineId(qw);
	}

}
